package com.cloud.spring.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cloud.spring.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao extends BaseMapper<User> {
    List<User> findById2(@Param("id")int id);

    List<User> findById3(@Param("id")int id);

    int updateUserById(User user);

    int insertBatch(@Param("userList") List<User> userList);

    List<User> selectBatch(@Param("ids")List<Integer> ids);
}
